<%--
  Created by IntelliJ IDEA.
  User: 31913
  Date: 2023/12/20
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>新增页面</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title >添加任务</title>
    <link href="css/bootstrap.min.css" rel="stylesheet"/>
    <link href="css/font-awesome.min.css?v=4.7.0" rel="stylesheet"/>
    <link href="ajax/libs/bootstrap-table/bootstrap-table.min.css?v=1.18.3" rel="stylesheet"/>
    <link href="css/animate.min.css?v=20210831" rel="stylesheet"/>
    <link href="css/style.min.css?v=20210831" rel="stylesheet"/>
    <link href="ruoyi/css/ry-ui.css?v=4.7.8" rel="stylesheet"/>
    <link href="ajax/libs/jquery-layout/jquery.layout-latest.css?v=1.4.4" rel="stylesheet"/>
    <!-- bootstrap-table 表格插件样式 -->
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-edit"   >
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">任务名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="rwmc" id="rwmc"    >
            </div>
        </div>
    </form>
</div>
<div class="row">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
        <button type="button" class="btn btn-sm btn-danger"  onclick="addGrabTask()"><i class="fa fa-reply-all"></i>开始拉取 </button>
    </div>
</div>
<script src="js/jquery.min.js?v=3.6.3"></script>
<script src="js/bootstrap.min.js?v=3.3.7"></script>
<!-- bootstrap-table 表格插件 -->
<script src="ajax/libs/bootstrap-table/bootstrap-table.min.js?v=1.18.3"></script>
<script src="ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js?v=1.18.3"></script>
<script src="ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js?v=1.18.3"></script>
<!-- jquery-validate 表单验证插件 -->
<script src="ajax/libs/validate/jquery.validate.min.js?v=1.19.3"></script>
<script src="ajax/libs/validate/jquery.validate.extend.js?v=1.19.3"></script>
<script src="ajax/libs/validate/messages_zh.js?v=1.19.3"></script>
<!-- bootstrap-table 表格树插件 -->
<script src="ajax/libs/bootstrap-table/extensions/tree/bootstrap-table-tree.min.js?v=1.18.3"></script>
<!-- 遮罩层 -->
<script src="ajax/libs/blockUI/jquery.blockUI.js?v=2.70.0"></script>
<script src="ajax/libs/iCheck/icheck.min.js?v=1.0.3"></script>
<script src="ajax/libs/layer/layer.min.js?v=3.7.0"></script>
<script src="ajax/libs/layui/layui.min.js?v=2.8.18"></script>
<script src="ruoyi/js/common.js?v=4.7.8"></script>
<script src="ruoyi/js/ry-ui.js?v=4.7.8"></script>
<script src="ajax/libs/jquery-layout/jquery.layout-latest.js?v=1.4.4"></script>
<script type="text/javascript">



    function submitHandler() {//保存按钮
        if ($.validate.form()) {
            $.operate.save( "addTask", $('#form-post-edit').serialize());
        }
    }

    function addGrabTask() {//开始拉取按钮
        $.operate.save( "addGrabTask", $('#form-post-edit').serialize());
    }
</script>
</body>
</html>
